@import './variables.module.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
@import './btn.scss';
@import './ruoyi.scss';
@import './font.scss';
@import './iconfont.scss';
@import './vxe-table.scss';

body {
  height: 100%;
  margin: 0;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}



label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//main-container全局样式
.app-container {
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: white;

  .toolbar-section {
    padding-bottom: 15px;
  }

  .table-section {
    flex-grow: 1;
    overflow: auto;
  }

}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.text-center {
  text-align: center
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

.top-right-btn {
  font-weight: bold;
  .refresh,.help,.export {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .refresh:hover {
    background-color: rgba(11,16,25,.06);
  }

  .help:hover {
    background-color: rgba(11,16,25,.06);
  }

  .export:hover {
    background-color: rgba(11,16,25,.06);
  }
}


@keyframes breathe {
  0%{
    transform: scale(1);
    box-shadow: 0 0 2px #00dd00;
  }
  50%{
    transform: scale(1.5);
    box-shadow: 0 0 10px #00dd00;
  }
  100%{
    transform: scale(1);
    box-shadow: 0 0 2px #00dd00;
  }
}

.breath-light {
  border-radius: 50%;
  width: 10px;
  height: 10px;
  display: inline-block;
  line-height: 20px;
  margin-right: 10px;
  background-color: #ccc;
  &.active {
    background-color: #00dd00;
    animation: breathe 3s linear infinite;
  }
}

.el-tabs {
  background: white;
  .el-tabs__header {
    padding-left: 20px;
  }
}

.app-main {
  /* 50= navbar  50  */
  min-height: calc(100vh - 50px);
  width: 100%;
  position: relative;
  overflow: auto;

}

.main-show-container {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
  >.el-tabs {
    height: 100%;
    display: flex;
    flex-direction: column;
    >.el-tabs__content {
      flex-grow: 1;
      .el-tab-pane {
        height: 100%;
      }
    }
  }
}

.layout {
  min-width: 1355px;
  height: 100%;
  background-color: #f0f2f5;
  display: flex;
  box-sizing: border-box;
  overflow: hidden;
  .aside {
    height: 100%;
    box-shadow: 0 5px 14px 5px #f0f1f6;
    position: relative;
  }
}

.page-container {
  height: calc(100% - 38px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.home .body {
  box-sizing: border-box;
  padding: 18px 24px;
  overflow-y: auto;
}

.assetStatistic {
  .columnTitle {
    font-size: 16px;
    font-weight: 700;
    color: #0b1019;
  }
  .list {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    .item {
      &:first-child {
        margin-left: 0;
      }
      & {
        flex: 1;
        height: 110px;
        background-color: #fff;
        box-shadow: 0 5px 14px 5px #f0f1f6;
        border-radius: 14px;
        box-sizing: border-box;
        padding: 0 20px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: relative;
        .title {
          font-size: 16px;
          font-weight: 700;
          color: #0b1019;
        }
        .total {
          font-size: 32px;
          font-family: DIN;
          margin-top: 8px;
        }
        .icon {
          width: 34px;
          height: 34px;
          display: inline-block;
          position: absolute;
          bottom: 20px;
          right: 20px;
        }
      }

    }
  }
}

.assetApply {
  width: 100%;
  margin-top: 20px;
  .columnTitle {
    font-size: 16px;
    font-weight: 700;
    color: #0b1019;

  }
  .list {
    width: 100%;
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    .item {
      &:first-child {
        margin-left: 0;
      }
      & {
        width: 189px;
        height: 70px;
        background-color: #fff;
        border-radius: 14px;
        box-shadow: 0 5px 14px 5px #f0f1f6;
        box-sizing: border-box;
        padding: 0 16px;
        cursor: pointer;
        display: flex;
        align-items: center;
        .title {
          font-size: 16px;
          font-weight: 700;
          color: #0b1019;
        }
        .total {
          font-size: 32px;
          font-family: DIN;
          margin-top: 8px;
        }
        .name {
          font-size: 15px;
          font-weight: 700;
          color: #0b1019;
          margin-left: 14px;
        }
        .icon {
          width: 40px;
          height: 40px;
          display: block;

          img {
            width: 100%;
            height: 100%;
          }
        }
      }

    }
  }
}

.assetList {
  width: 100%;
  margin-top: 20px;
  .columnTitle {
    font-size: 16px;
    font-weight: 700;
    color: #0b1019;

  }
  .list {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;


    .item {
      width: 395px;
      height: 160px;
      background-color: #fff;
      border-radius: 10px;
      transition: all .35s;
      margin-bottom: 20px;
      cursor: pointer;
      overflow: hidden;
      position: relative;
      display: flex;

      .image {
        width: 160px;
        height: 160px;
        background-color: #e9e9e9;
        border-radius: 10px 0 0 10px;
        overflow: hidden;
        display: flex
      ;
        flex-shrink: 0;
        align-items: center;
        justify-content: center;
      }

      .box {
        width: 100%;
        padding: 16px;
        box-sizing: border-box;
        overflow: hidden;
        position: relative;
        .title {
          line-height: 22px;
          font-size: 15px;
          font-weight: 700;
          color: #0b1019;
          padding-right: 25px;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
        }
        .label {
          height: 22px;
          margin-top: 8px;
        }
        .content {
          margin-top: 20px;
        }
        .el-dropdown {
          position: absolute;
          top: 0;
          right: 0;
        }
      }
    }
  }
}

